﻿using System;
using System.Runtime.Serialization;

namespace MyAMS.WebServer.Models
{
    /// <summary>
    /// 评论
    /// </summary>
    [DataContract]
    public class Comment : BaseEntity
    {
        /// <summary>
        /// 获取或设置创建者
        /// </summary>
        /// <value>创建者</value>
        //[DataMember]
        //public BaseUser Creator { get; set; }
        //TODO (5he11)

        /// <summary>
        /// 获取或设置创建者地址
        /// </summary>
        /// <value>创建者地址</value>
        [DataMember]
        public long CreatorIP { get; set; }

        /// <summary>
        /// 获取或设置创建者代理
        /// </summary>
        /// <value>创建者代理</value>
        [DataMember]
        public string CreatorUserAgent { get; set; }

        /// <summary>
        /// 获取或设置正文
        /// </summary>
        /// <value>正文</value>
        [DataMember]
        public string Body { get; set; }

        /// <summary>
        /// 获取或设置状态
        /// </summary>
        /// <value>状态</value>
        [DataMember]
        public EntityState State { get; set; }

        /// <summary>
        /// 获取或设置创建时间
        /// </summary>
        /// <value>创建时间</value>
        [DataMember]
        public DateTime? Created { get; set; }

        /// <summary>
        /// 获取或设置修改时间
        /// </summary>
        /// <value>修改时间</value>
        [DataMember]
        public DateTime? Modified { get; set; }
    }
}
